import request from "@/utils/request";


export function list(params) {
    return request.post('/api/role/list', {...params});
}

export function add(params) {
    return request.post('/api/role/add', {...params});
}

export function edit(params) {
    return request.post('/api/role/edit', {...params});
}

export function del(params) {
    return request.post('/api/role/del', {...params});
}

export function listMenu(params) {
    return request.post('/api/RoleMenu/list', {...params});
}

export function addMenu(params) {
    return request.post('/api/RoleMenu/add', {...params});
}